<script setup lang="ts">
const route = useRoute();
const src = ref("");

// 监听路由的变化
watch(
    () => route.query,
    (query) => {
      src.value = query.iframeUrl as string;
    },
    {
      immediate: true,
      deep: true,
    }
);

const iframeLoad = () => {
};
</script>

<template>
  <iframe
      :src
      class="h-full w-full border-none"
      @load="iframeLoad"
  ></iframe>
</template>
